package com.maoyanjava.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.maoyanjava.mapper.SeatMapper;
import com.maoyanjava.pojo.Seat;
import com.maoyanjava.service.SeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SeatServiceImpl implements SeatService {
    @Autowired
    private SeatMapper sm;


    @Override
    public List<Seat> getAllByPid(int pid) {

        return sm.getAllByPid(pid);
    }


    @Override
    public int updateSeat1(Integer no, Integer pid) {
        return sm.updateSeat1(no,pid);
    }

    @Override
    public int updateSeat0(Integer no, Integer pid) {
        return sm.updateSeat0(no,pid);
    }

    @Override
    public int updateSeat2() {
        return sm.updateSeat2();
    }
}
